package my.sso.my_sso_demo01.controller;

import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

@RestController
public class QqController {

    @Resource
    private StringRedisTemplate stringRedisTemplate;

    @RequestMapping("/login11")
    public Object login(String username, String password, HttpServletRequest request, HttpServletResponse response){
        Map<String,String> map = new HashMap<>();
        map.put("user",username);
        map.put("pwd",password);
        //String jwt =
        return null;
    }
}
